package com.qiniuyun.backai.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;

/**
 * 历史会话列表数据传输对象
 * @author 王程楠
 * @since 2025-09-23
 */
@Data
@Schema(description = "历史会话列表数据传输对象")
public class ConversationHistoryDTO {

    @Schema(description = "页码，从0开始", example = "0")
    @NotNull(message = "页码不能为空")
    @Min(value = 0, message = "页码不能小于0")
    private Integer page;

    @Schema(description = "每页记录数", example = "10")
    @NotNull(message = "每页记录数不能为空")
    @Min(value = 1, message = "每页记录数不能小于1")
    private Integer size;

    @Schema(description = "用户ID", example = "1001")
    private Long userId;
}